package com.gcit.seniorWish.web.common.persistence.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 班级信息表
 * </p>
 *
 * @author tonglu
 * @since 2018-03-19
 */
@TableName("senior_school_class")
public class SeniorSchoolClass extends Model<SeniorSchoolClass> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(value = "id", type = IdType.UUID)
	private String id;
	/**
	 * 所属学校id
	 */
	@TableField("senoir_school_id")
	private String senoirSchoolId;
	/**
	 * 班级代号
	 */
	@TableField("senior_class_code")
	private String seniorClassCode;
	/**
	 * 班级名称
	 */
	@TableField("senoir_class_name")
	private String senoirClassName;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 创建者id
	 */
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date modifyTime;

	/**
	 * 更新者id
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private String modifyBy;

	/**
	 * 删除标记
	 */
	@TableField(fill = FieldFill.INSERT)
	@TableLogic
	private Integer delFlag;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSenoirSchoolId() {
		return senoirSchoolId;
	}

	public void setSenoirSchoolId(String senoirSchoolId) {
		this.senoirSchoolId = senoirSchoolId;
	}

	public String getSeniorClassCode() {
		return seniorClassCode;
	}

	public void setSeniorClassCode(String seniorClassCode) {
		this.seniorClassCode = seniorClassCode;
	}

	public String getSenoirClassName() {
		return senoirClassName;
	}

	public void setSenoirClassName(String senoirClassName) {
		this.senoirClassName = senoirClassName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getModifyBy() {
		return modifyBy;
	}

	public void setModifyBy(String modifyBy) {
		this.modifyBy = modifyBy;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SeniorSchoolClass{" + ", id=" + id + ", senoirSchoolId=" + senoirSchoolId + ", seniorClassCode="
				+ seniorClassCode + ", senoirClassName=" + senoirClassName + "}";
	}
}
